<!DOCTYPE html>
<html lang="zh-CN"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="model/boardModel">

<body>

<div th:fragment="pagenav" th:remove="tag">
    <div th:replace="model/nav :: pageheader ('用户管理','用户新增')"></div>
</div>

<div th:fragment="content" th:remove="tag">


    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">新增用户</h3>

        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form class="form-horizontal" th:action="@{/user/add}" method="post" >
            <div class="box-body">

                <div class="form-group">
                    <label for="inputUserName" class="col-sm-2 control-label">账户</label>

                    <div class="col-sm-10">
                        <input type="text" th:name="userName" class="form-control" id="inputUserName" placeholder="账户"/>
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputNickName" class="col-sm-2 control-label">名称</label>

                    <div class="col-sm-10">
                        <input type="text" th:name="nickName" class="form-control" id="inputNickName" placeholder="名称"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPhone" class="col-sm-2 control-label">联系电话</label>

                    <div class="col-sm-10">
                        <input type="tel" th:name="phone" class="form-control" id="inputPhone" placeholder="联系电话"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-2 control-label">密码</label>

                    <div class="col-sm-10">
                        <input type="password" th:name="password" class="form-control" id="inputPassword" placeholder="密码"/>
                    </div>
                </div>

            </div>
            <!-- /.box-body -->

            <div class="box-footer">
                <button type="button" class="btn btn-primary pull-left" onclick="history.back()">取消</button>
                <button type="submit" class="btn btn-primary pull-right">保存</button>
            </div>
        </form>
    </div>


</div>

</body>
</html>